<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetime.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.datetime.html">DateTime</a></div>
 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetime.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="para">
  The <a href="class.datetime.html#datetime.constants.types" class="link"><em>DATE_</em>
  constants</a> are defined since PHP 5.1.1 and they offer standard
  date representations, which can be used along with the date format functions
  (like <span class="function"><a href="function.date.html" class="function">date()</a></span>).
 </p>
 <p class="para">
  Following constants exists since PHP 5.1.2 and specify a format returned by
  functions <span class="function"><a href="function.date-sunrise.html" class="function">date_sunrise()</a></span> and
  <span class="function"><a href="function.date-sunset.html" class="function">date_sunset()</a></span>.
 </p>
 <dl>

  
   <dt id="constant.sunfuncs-ret-timestamp">
    <strong><code>SUNFUNCS_RET_TIMESTAMP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Timestamp
    </span>
   </dd>

  
  
   <dt id="constant.sunfuncs-ret-string">
    <strong><code>SUNFUNCS_RET_STRING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Hours:minutes (example: 08:02)
    </span>
   </dd>

  
  
   <dt id="constant.sunfuncs-ret-double">
    <strong><code>SUNFUNCS_RET_DOUBLE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Hours as floating point number (example 8.75)
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetime.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.datetime.html">DateTime</a></div>
 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
